<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<jsp:directive.page import="java.sql.Date" />
<jsp:directive.page import="java.text.SimpleDateFormat" />
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>文件列表</title>
		<link href="${contextPath}/styles/main/ais.css" rel="stylesheet"
			type="text/css">
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/resources/csswin/subModal.css" />
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/resources/csswin/common.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/resources/csswin/subModal.js"></script>
		<SCRIPT type="text/javascript"
			src="${contextPath}/scripts/calendar.js"></SCRIPT>
		<SCRIPT type="text/javascript" src="${contextPath}/scripts/check.js"></SCRIPT>


		<!-- dwr 需要引入的文件 -->
		<script type='text/javascript'
			src='${pageContext.request.contextPath}/js/dwr/DWRActionUtil.js'></script>
		<script type='text/javascript'
			src='${pageContext.request.contextPath}/dwr/interface/DWRAction.js'></script>
		<script type='text/javascript'
			src='${pageContext.request.contextPath}/dwr/engine.js'></script>
		<script type="text/javascript">
	 		function upload(){
			window.location.href="<%=request.getContextPath()%>/jsp/updownload/upload.jsp";
		}
	</script>
	</head>
	<body>
		<center>
			<s:form id="projectApplyForm" action="projectUpdate"
				namespace="/com/catt/dms/projectapply">
				<jsp:include flush="true" page="/pages/select/select_public.jsp"></jsp:include>

				<div align="center">
					&nbsp;
					<font size="6"><strong>文件下载列表</strong> </font>
				</div>


				<display:table name="docInfoList" id="row"
					requestURI="/com/cattsoft/updownload/listDoc.action" pagesize="10"
					class="its" cellpadding="1">
					<display:column style="WHITE-SPACE: nowrap" title="文件名称"
						property="docName" headerClass="center" class="center">
					</display:column>
					<display:column style="WHITE-SPACE: nowrap" title="文件类型"
						property="docSuffixName" headerClass="center" class="center">
					</display:column>
					<display:column style="WHITE-SPACE: nowrap" title="备注"
						property="memo" headerClass="center" class="center">
					</display:column>
					<display:column style="WHITE-SPACE: nowrap" title="上传时间"
						property="uploadDate" headerClass="center" class="center">
					</display:column>
					<display:column style="WHITE-SPACE: nowrap" title="操作"
						headerClass="center" class="center">
						<a href="doDownLoad.action?docId=${row.docId}">下载</a>
					</display:column>
					<display:column style="WHITE-SPACE: nowrap" title="操作"
						headerClass="center" class="center">
						<a href="/SSH2/jsp/updownload/image_detail.jsp?docId=${row.docId}">预览</a>
					</display:column>
					<display:setProperty name="paging.banner.placement" value="bottom" />
				</display:table>
				<br>
				<br>
				<div align="center">
					<input type="button" value="上传文件" onclick="upload()" />
				</div>
			</s:form>
			<a onclick="chuanDiList()" id="chuandi">向get.jsp传递集合</a>
		</center>
	</body>
	<script type="text/javascript">
		function chuanDiList(){
			<% 
				request.setAttribute("list",request.getAttribute("docInfoList")); 	
							 
			%> 			 
		}
	</script>
</html>
